package com.vortex.cloud.sample.utils;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-10-25 周一
 * @time 14:31
 * @description
 */
@Documented
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MyIdentityValidator.class)
public @interface MyIdentity {

    String message() default "格式不合法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
